// Copyright (c) 2021 Presto Labs Pte. Ltd.
// Author: daniel

#pragma once

#include <string>

#include "coin2/exchange/base/order/processor.h"
#include "coin2/exchange/gopax/api_order/native_private_client.h"

namespace coin2::exchange::order {
class GopaxRestParams;
}  // namespace coin2::exchange::order

namespace coin2::exchange::gopax::api_order {

class GopaxRestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestParams = coin2::exchange::order::GopaxRestParams;
  using RestClient = GopaxNativePrivateClient;

 public:
  using RestSubscriber::RestSubscriber;

  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }
  void QueryBalance();
  void QueryAllOrders();
  void QueryFills();
  void QueryTransfer();
  void SubscribeAsync() override;
};

}  // namespace coin2::exchange::gopax::api_order
